package com.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.List;

@Data
public class Order {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer orderType;

    private String orderId;

    private Long userId;

    private String name;

    private String mobile;

    private String address;

    private Timestamp createTime;

    private BigDecimal totalAmount;

    private BigDecimal payAmount;

    private BigDecimal couponAmount;

    private BigDecimal freightAmount;

    private BigDecimal promotionAmount;

    private Integer payType;

    private Integer status;

    private Long skuId;

    private Integer itemNum;

    private String addrProvince;

    private String addrCity;

    private String addrArea;

    private String addrStreet;

    private Integer skuNumCount;

    //用户的订单信息
    @TableField(exist = false)
    private List<skuList> skuList;

}
